
//var fs = require('fs');
let buf = '';

process.stdin.on('readable', function() {
  let chunk = process.stdin.read();
  if (chunk) buf += chunk.toString();
});

class Stack {
    constructor() {
      this.items = [];
    }
  
    push(element) {
      this.items.push(element);
    }
  
    pop() {
      return this.items.pop();
    }
  
    peek() {
      return this.items[this.items.length - 1];
    }
  
    isEmpty() {
      return this.items.length === 0;
    }
  
    size() {
      return this.items.length;
    }
  
    clear() {
      this.items = [];
    }
  
    toArray() {
      return this.items;
    }
  
    toString() {
      return this.items.toString();
    }
  }
  
function decimalToBinary(decNumber){
    const remStack = new Stack;
    let rem;
    let binaryString = '';
    while(decNumber>0){
        rem = Math.floor(decNumber%2);
        remStack.push(rem);
        decNumber = Math.floor(decNumber/2);
    }
    while(!remStack.isEmpty()){
        binaryString += remStack.pop().toString();
    }
    return binaryString;
};

/*process.stdin.on('readable', function() {
  var chunk = process.stdin.read();
  if (chunk) buf += chunk.toString();
});*/


 
process.stdin.on('end', function() {
  buf.split('\n').forEach(function(line) {
      let k = parseInt(line);
      // 在这里使用输入作为参数运行测试程序
      console.log(decimalToBinary(k));
    
  });
});

//console.log(decimalToBinary(233));